﻿using System.Collections.Generic;

namespace OrderMicroService.Types.DTO
{
    public class Page<T>
    {
        public Page(IEnumerable<T> data, int totalCount = 0)
        {
            List = data ?? new List<T>();
            TotalCount = totalCount;
        }

        public IEnumerable<T> List { get; set; }
        public int TotalCount { get; set; }
    }
}